import uiautomator2 as u2
import time

# d = u2.connect_wifi("192.168.2.221")
# print(d.info)

d = u2.connect_adb_wifi("192.168.2.221:5555")

print(d.agent_alive)

print(d.device_info)

d.app_start("com.ss.android.article.news")
print(d.app_current())
d.app_clear("com.ss.android.article.news")
time.sleep(10)

d.app_stop("com.ss.android.article.news")